import { postAxios, getAxios, postDownloadAxios } from "@/lib/http";

export const atmosphereApi = {
  // 获取详情
  getById: data => {
    return getAxios(`/atmosphere/getById/${data}`);
  },
  // 添加气候环境 @author wuhq
  addAtmosphere: data => {
    return postAxios("/atmosphere/add", data);
  },
  // 分页查询气候环境 @author wuhq
  queryAtmosphere: data => {
    return postAxios("/atmosphere/page/query", data);
  },
  // 批量删除气候环境 @author wuhq
  batchDeleteAtmosphere: idList => {
    return postAxios("/atmosphere/deleteByIds", idList);
  },
  // 修改气候环境  @author wuhq
  updateAtmosphere: data => {
    return postAxios("/atmosphere/update", data);
  },
  // 导出全部  @author wuhq
  exportAll: data => {
    return postDownloadAxios("/atmosphere/export/all", data);
  },
  // 批量导出  @author wuhq
  batchExport: idList => {
    return postDownloadAxios("/atmosphere/export/batch", idList);
  }
};
